public class Baby {


    int hungry;
    IFeedAble feedMan;


    public int getHungry() {
        return hungry;
    }

    public void setHungry(int hungry) {
        this.hungry = hungry;

        if(hungry>60)
        {

            System.out.println("婴儿:我饿了~~~~~");
            feedMan.feed(this);

        }

    }

    public boolean isAlive()
    {
        if(this.hungry>=100)
        {
            System.out.println("婴儿:饿死了");
            return false;
        }
        return true;
    }

}